<?php foreach($pages as $pages_rec): ?>
	<form action="<?php echo site_url("mimin_jonu/update_page/$pages_rec[jonu_pages_id]") ?>" method="post">
		<label>Page Title</label>
		<input type="text" name="page_title" class="form-control input-sm" value="<?php echo $pages_rec['jonu_pages_title'] ?>" />
		<label>Page Permalink</label><small style="margin-left:10px" class="text-info">*Don't user "blank space". Separate with "-" character
		<input type="text" name="page_permalink" class="form-control input-sm" value="<?php echo $pages_rec['jonu_pages_permalink'] ?>"/>
		<label>Content</label>
		<textarea class="form-control input-sm" name="page_content" rows="10"><?php echo $pages_rec['jonu_pages_content'] ?></textarea>

		<div class="btn-group" data-toggle="buttons">
			<?php if($pages_rec['jonu_pages_status'] == "Published"): ?>
				<label class="btn btn-info active btn-sm">
					<input type="radio" name="page_status" checked="checked" value="Published"/> Publish
				</label>
				<label class="btn btn-info btn-sm">
					<input type="radio" name="page_status" value="Drafted"/> Draft
				</label>
			<?php elseif($pages_rec['jonu_pages_status'] == "Drafted"): ?>
				<label class="btn btn-info btn-sm">
					<input type="radio" name="page_status" checked="checked" value="Published"/> Publish
				</label>
				<label class="btn btn-info active btn-sm">
					<input type="radio" name="page_status" value="Drafted"/> Draft
				</label>
			<?php endif; ?>

		</div>
		<span style="width: 100%; margin-top: 10px; display: inline-block;">
			<input style="float:right !important" class="btn btn-jonu" type="submit" name="btn_edit_page" value="Update Page"/>
		</span>	
	</form>
<?php endforeach; ?>